<?php

namespace Modules\Common\Models\Validation;


/**
 *@property int $id
 *@property int $branch_id
 *@property int $enterprise_id
 *@property string $title
 *@property int $status
 *@property string $note
 *@property string $fingerprint
 *@property string $created_at
 *@property string $updated_at
 *@property string $deleted_at
 */
trait WorkMessageValidation 
{


    public function createRules()
    {
         return [
            'rules' => [
                'branch_id'=>'integer',
                'enterprise_id'=>'integer',
                'title'=>'between:0,128',
                'status'=>'integer|in:0,1,2',
                'note'=>'between:0,64',
                'fingerprint'=>'between:0,64',
                
            ],
            'messages' => [
            ],
            'customAttributes' => [
            ]
        ];
    }

    public function updateRules()
    {
         return [
            'rules' => [
                'branch_id'=>'integer',
                'enterprise_id'=>'integer',
                'title'=>'between:0, 128',
                'status'=>'integer|in:0,1,2',
                'note'=>'between:0, 64',
                'fingerprint'=>'between:0, 64',
                
            ],
            'messages' => [
            ],
            'customAttributes' => [
            ]
        ];
    }


}
